package cn.ad.server.persistence.dao;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import cn.ad.server.domain.ad.Interest;

@Component
public interface InterestDao {

	@Results(value = { @Result(column = "id", property = "id", id = true),
			@Result(column = "parent_id", property = "parentId"),
			@Result(column = "update_time", property = "updateTime")
	})
	@Select("select * from interest")
	List<Interest> findAll();

}
